<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>

<div class="main-div">
  <form action="" method="post" enctype="multipart/form-data" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">			 <tr>        <td class="label"><?php echo $this->_var['lang']['technology_type']; ?>:</td>        <td>        	<input name="technology_type" type="radio" value="0" onclick="brand()" <?php if ($this->_var['technology']['technology_type'] == 0): ?>checked<?php endif; ?>>品牌        	<input name="technology_type" type="radio" value="1" onclick="commen()" <?php if ($this->_var['technology']['technology_type'] == 1): ?>checked<?php endif; ?>>通用        </td>      </tr>
      <tr id="brand">
        <td class="label"><?php echo $this->_var['lang']['brand']; ?>:</td>
        <td><select name="brand_id">						<?php $_from = $this->_var['brand']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'info_type');if (count($_from)):
    foreach ($_from AS $this->_var['info_type']):
?>									<?php if ($this->_var['info_type']['brand_id'] == $this->_var['technology']['brand_id']): ?>									<option value="<?php echo $this->_var['info_type']['brand_id']; ?>" selected="true"><?php echo $this->_var['info_type']['brand_name']; ?>										<?php else: ?>									<option value="<?php echo $this->_var['info_type']['brand_id']; ?>"><?php echo $this->_var['info_type']['brand_name']; ?>									<?php endif; ?>									</option>						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>					</select>
        </td>
      </tr>      			 <tr>        <td class="label"><?php echo $this->_var['lang']['cat_type']; ?>:</td>        <td>        	<input name="cat_type" type="radio" value="0" onclick="material()" <?php if ($this->_var['technology']['cat_type'] == 0): ?>checked<?php endif; ?>>材料        	<input name="cat_type" type="radio" value="1" onclick="technology()" <?php if ($this->_var['technology']['cat_type'] == 1): ?>checked<?php endif; ?>>科技        </td>      </tr>       <tr id='material' style="display: none;">        <td class="label" ><?php echo $this->_var['lang']['material_cat']; ?>:</td>        <td>        	<input name="material_cat" type="radio" value="1" <?php if ($this->_var['technology']['technology_cat'] == 1): ?>checked<?php endif; ?>>大底材料        	<input name="material_cat" type="radio" value="2" <?php if ($this->_var['technology']['technology_cat'] == 2): ?>checked<?php endif; ?>>中底材料        	<input name="material_cat" type="radio" value="3" <?php if ($this->_var['technology']['technology_cat'] == 3): ?>checked<?php endif; ?>>鞋面材料        	<input name="material_cat" type="radio" value="4" <?php if ($this->_var['technology']['technology_cat'] == 4): ?>checked<?php endif; ?>>其他材料        </td>      </tr>      <tr id='technology' style="display: none;">        <td class="label"><?php echo $this->_var['lang']['technology_cat']; ?>:</td>        <td>        	<input name="technology_cat" type="radio" value="1" <?php if ($this->_var['technology']['technology_cat'] == 1): ?>checked<?php endif; ?>>大底科技        	<input name="technology_cat" type="radio" value="2" <?php if ($this->_var['technology']['technology_cat'] == 2): ?>checked<?php endif; ?>>中底科技        	<input name="technology_cat" type="radio" value="3" <?php if ($this->_var['technology']['technology_cat'] == 3): ?>checked<?php endif; ?>>鞋面科技        	<input name="technology_cat" type="radio" value="4" <?php if ($this->_var['technology']['technology_cat'] == 4): ?>checked<?php endif; ?>>其他科技        </td>      </tr>			<tr>        <td class="label"><?php echo $this->_var['lang']['technology_name']; ?>:</td>        <td><input type="text" name="technology_name" value="<?php echo htmlspecialchars($this->_var['technology']['technology_name']); ?>"  size="40" /><?php echo $this->_var['lang']['require_field']; ?>       </td>      </tr>      <tr>        <td class="label"><?php echo $this->_var['lang']['technology_read']; ?>:</td>        <td><textarea name="technology_read" rows="5" cols="42"><?php echo htmlspecialchars($this->_var['technology']['technology_read']); ?></textarea></td>      </tr>      <tr>        <td class="label"><?php echo $this->_var['lang']['technology_picture']; ?>:</td>        <td>        	<input type="file" name="technology_picture">        	<input name="file_url" type="hidden" value="<?php echo $this->_var['technology']['url_picture']; ?>" size="30" maxlength="255">        </td>      </tr>      <tr>        <td class="label"></td>        <td>        	<?php if ($this->_var['technology']['technology_picture'] != ""): ?>    			<a href="<?php echo $this->_var['technology']['technology_picture']; ?>" target='_blank'><img src="<?php echo $this->_var['technology']['technology_picture']; ?>"  width="720" height="480"/></a><br />    			(图片规格统一为：720px * 480px)    		<?php endif; ?>        </td>      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="technology_id" value="<?php echo $this->_var['technology']['technology_id']; ?>" />
          <input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />
          <input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
          <input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--

onload = function() {
  document.forms['theForm'].elements['series_name'].focus();
  startCheckOrder();
}<?php if ($this->_var['technology']['technology_type'] == 0): ?>		brand();		<?php else: ?>		commen();<?php endif; ?><?php if ($this->_var['technology']['cat_type'] == 0): ?>		material();		<?php else: ?>		technology();<?php endif; ?>
function brand(){document.getElementById('brand').style.display="";}function commen(){document.getElementById('brand').style.display="none";}function material(){document.getElementById('material').style.display="";	document.getElementById('technology').style.display="none";}function technology(){document.getElementById('material').style.display="none";	document.getElementById('technology').style.display="";}
function validate()
{
  var validator = new Validator('theForm');
  validator.required('technology_name', '材料/技术名称不能为空');

  return validator.passed();
}
  
//-->
</script>

<?php echo $this->fetch('pagefooter.htm'); ?>
